﻿using MediatR;
using Traceability.ErrorCode;

namespace Traceability.APP.Application.Command.Company
{
    /// <summary>
    /// 屠宰企业的新增
    /// </summary>
    public class AddCompanyCommand:IRequest<APIResult<int>>
    {

        /// <summary>
        /// 公司名称
        /// </summary>
        public string Company_Name { get; set; }

        /// <summary>
        /// 公司地址
        /// </summary>
        //public string Company_Addr { get; set; }
        public string Company_Sheng { get; set; }   //省
        public string Company_Shi { get; set; } //市
        public string Company_Xian { get; set; } //县

        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime Commany_CreateTime { get; set; }

        /// <summary>
        /// 公司简介
        /// </summary>
        public string Company_Desc { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        public string Batch { get; set; }

        
        /// <summary>
        /// 主键ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDeleted { get; set; } = false;

    }

}
